package com.blog;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class day01 {

	public static void main(String[] args) {
		// 2.1 java 类初始化顺序
		// 2.2 值传递和引用传递
		// 引用和基本的区别
		List<List<String>> fatherList = new LinkedList<>();
		List<String> childList = new ArrayList<>();
		childList.add("before add");
		fatherList.add(childList);
		System.out.println("after add before "+fatherList);
		childList.add("after add");
		
		System.out.println(fatherList);
		
		
		
	}

}
